package com.ruoyi.dormitory.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍住宿记录对象 dormitory_record
 * 
 * @author ruoyi
 * @date 2023-04-26
 */
public class DormitoryRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 记录编号 */
    @TableId(value = "record_number", type = IdType.INPUT)
    private Integer recordNumber;

    /** 宿舍编号 */
    private Integer dormitoryNumber;

    /** 员工编号 */
    private String employeeNumber;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String employeeName;


    /** 手机号码 */
    @Excel(name = "手机号码")
    private Long phoneNumber;

    /** 员工部门 */
    @Excel(name = "员工部门")
    private String department;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInTime;

    /** 退宿时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退宿时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkOutTime;

    /** 床位类型(0 单床,1 下铺 , 2 上铺) */
    @Excel(name = "床位类型(0 单床,1 下铺 , 2 上铺)")
    private Long bedType;

    public Integer getRecordNumber() {
        return recordNumber;
    }

    public void setRecordNumber(Integer recordNumber) {
        this.recordNumber = recordNumber;
    }

    public Integer getDormitoryNumber() {
        return dormitoryNumber;
    }

    public void setDormitoryNumber(Integer dormitoryNumber) {
        this.dormitoryNumber = dormitoryNumber;
    }

    public void setEmployeeNumber(String employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public String getEmployeeNumber() {
        return employeeNumber;
    }

    public void setEmployeeName(String employeeName)
    {
        this.employeeName = employeeName;
    }

    public String getEmployeeName() 
    {
        return employeeName;
    }

    public void setPhoneNumber(Long phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public Long getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setCheckInTime(Date checkInTime) 
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime() 
    {
        return checkInTime;
    }
    public void setCheckOutTime(Date checkOutTime) 
    {
        this.checkOutTime = checkOutTime;
    }

    public Date getCheckOutTime() 
    {
        return checkOutTime;
    }
    public void setBedType(Long bedType) 
    {
        this.bedType = bedType;
    }

    public Long getBedType() 
    {
        return bedType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dormitoryNumber", getDormitoryNumber())
            .append("employeeNumber", getEmployeeNumber())
            .append("employeeName", getEmployeeName())
            .append("phoneNumber", getPhoneNumber())
            .append("department", getDepartment())
            .append("checkInTime", getCheckInTime())
            .append("checkOutTime", getCheckOutTime())
            .append("bedType", getBedType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
